package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

/**
 * 类功能描述(类上)
 *
 * @author AnBetter
 * @since 2021-04-16
 */
public class FeedbackEndpoint implements Sequenceable, Serializable  {
    @SerializedName("uiActions")
    private UiActions uiActions;
    @SerializedName("feedbackToken")
    private String feedbackToken;

    public static final Sequenceable.Producer<FeedbackEndpoint> CREATOR = new Producer<FeedbackEndpoint>() {
        @Override
        public FeedbackEndpoint createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            FeedbackEndpoint feedbackEndpoint = new FeedbackEndpoint();
            feedbackEndpoint.unmarshalling(parcel);
            return feedbackEndpoint;
        }
    };

    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.uiActions);
        parcel.writeString(this.feedbackToken);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.uiActions);
        this.feedbackToken=parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "FeedbackEndpoint{" +
                "uiActions = '" + uiActions + '\'' +
                ",feedbackToken = '" + feedbackToken + '\'' +
                "}";
    }

    public UiActions getUiActions() {
        return uiActions;
    }

    public void setUiActions(UiActions uiActions) {
        this.uiActions = uiActions;
    }

    public String getFeedbackToken() {
        return feedbackToken;
    }

    public void setFeedbackToken(String feedbackToken) {
        this.feedbackToken = feedbackToken;
    }
}
